package com.synnex.wms.service;
/**
 * 床位 接口实现类，service
 * */
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.synnex.wms.mapper.ChuangwMapper;
import com.synnex.wms.pojo.Chuangw;

@Service
@Transactional
public class ChuangwService {

	@Autowired
	private ChuangwMapper ChuangwMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return ChuangwMapper.deleteByPrimaryKey(id);
	}

    public int insert(Chuangw record){
    	return ChuangwMapper.insert(record);
    }

    public int insertSelective(Chuangw record){
    	return ChuangwMapper.insertSelective(record);
    }

    public Chuangw selectByPrimaryKey(Integer id){
    	return ChuangwMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Chuangw record){
    	return ChuangwMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Chuangw record){
    	return ChuangwMapper.updateByPrimaryKey(record);
    }
    
    //查询所有
    public List<Chuangw> selectBy(){
    	return ChuangwMapper.selectBy();
    }
    
    public List<Chuangw> showlist(Chuangw Chuangw){
    	return ChuangwMapper.showlist(Chuangw);
    }
    public int pagecount(Chuangw Chuangw){
    	return ChuangwMapper.pagecount(Chuangw);
    }
    
    
}
